#pragma once
#include<QMainWindow>
#include<QItemSelection>


class AddressWidget;
class MainWindow : public QMainWindow
{
	Q_OBJECT

	public:
		MainWindow();

		private slots:
        void updateActions(const QItemSelection & selection);
		void openFile();
		void saveFile();

	private:
		void createMenus();

		AddressWidget * addressWidget_;
		QMenu * fileMenu_;
		QMenu * toolMenu_;
		QAction * openAct_;
		QAction * saveAct_;
		QAction * exitAct_;
		QAction * addAct_;
		QAction * editAct_;
		QAction * removeAct_;
};
